package org.devocean.groupbuying.domain;

import java.io.Serializable;

@SuppressWarnings("serial")
public class CartItem implements Serializable {

	private Integer discountID;
	private String discountInfo;
	private Integer quantity = 0;
	private Double unitPrice;
	private Double amount = 0.0;

	public CartItem(Integer discountID, String discountInfo, Integer quantity,
			Double unitPrice, Double amount) {
		super();
		this.discountID = discountID;
		this.discountInfo = discountInfo;
		this.quantity = quantity;
		this.unitPrice = unitPrice;
		this.amount = amount;
	}

	public Integer getDiscountID() {
		return discountID;
	}

	public void setDiscountID(Integer discountID) {
		this.discountID = discountID;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public String getDiscountInfo() {
		return discountInfo;
	}

	public void setDiscountInfo(String discountInfo) {
		this.discountInfo = discountInfo;
	}

	public Double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(Double unitPrice) {
		this.unitPrice = unitPrice;
	}

	@Override
	public String toString() {
		return "CartItem [discountID=" + discountID + ", discountInfo="
				+ discountInfo + ", quantity=" + quantity + ", unitPrice="
				+ unitPrice + ", amount=" + amount + "]";
	}

}
